import service from '../utils/request.js'; // 引入二次封装的 axios

// 服务预约管理
export const deleteServiceReservationById = (id) => {
    return service.post(`/api/admin/serviceReservation/delete/${id}`);
};

export const getServiceReservationById = (id) => {
    return service.get(`/api/admin/serviceReservation/detail/${id}`);
};

export const listServiceReservations = (queryDTO) => {
    return service.post('/api/admin/serviceReservation/list', queryDTO);
};

export const reviewServiceReservation = (reviewDTO) => {
    return service.post('/api/admin/serviceReservation/review', reviewDTO);
};

export const countServiceReservation = () => {
    return service.get('/api/admin/serviceReservation/count');
};

export const deleteServiceReservationBatch = (ids) => {
    return service.post('/api/admin/serviceReservation/batchDelete', ids);
};